<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="PydgtbareseneEditDlg" widgetVar="PydgtbareseneEditDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.EditPydgtbareseneTitle}">

            <h:form id="PydgtbareseneEditForm">

                <h:panelGroup id="display">
                    <p:panelGrid  columns="2" rendered="#{pydgtbareseneController.selected != null}">

                        <h:outputLabel value="#{myBundle.EditPydgtbareseneLabel_pydgtbareseneid}" for="pydgtbareseneid" />
                        <h:outputText id="pydgtbareseneid" value="#{pydgtbareseneController.selected.pydgtbareseneid}" />

                        <p:outputLabel value="#{myBundle.EditPydgtbareseneLabel_scaltbareainveid}" for="scaltbareainveid" />
                        <p:selectOneMenu id="scaltbareainveid" value="#{pydgtbareseneController.selected.scaltbareainveid}" required="true" requiredMessage="#{myBundle.EditPydgtbareseneRequiredMessage_scaltbareainveid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scaltbareainveController.items}"
                                           var="scaltbareainveidItem"
                                           itemValue="#{scaltbareainveidItem}"
                                           itemLabel="#{scaltbareainveidItem.scaltbareainveid.toString()}"
                                           />
                            <f:converter binding="#{scaltbareainveConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.EditPydgtbareseneLabel_pydgtbproyecid}" for="pydgtbproyecid" />
                        <p:selectOneMenu id="pydgtbproyecid" value="#{pydgtbareseneController.selected.pydgtbproyecid}" required="true" requiredMessage="#{myBundle.EditPydgtbareseneRequiredMessage_pydgtbproyecid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pydgtbproyecController.items}"
                                           var="pydgtbproyecidItem"
                                           itemValue="#{pydgtbproyecidItem}"
                                           itemLabel="#{pydgtbproyecidItem.pydgtbproyecid.toString()}"
                                           />
                            <f:converter binding="#{pydgtbproyecConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{pydgtbareseneController.save}" value="#{myBundle.Save}" update="display,:PydgtbareseneListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,PydgtbareseneEditDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="PydgtbareseneEditDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
